import request from "@/utils/request";

const COINS_BASE_URL = "/api/v1";

const recordsApi = {
  getList(data: any) {
    return request({
      url: `${COINS_BASE_URL}/transactionRecords/page`,
      method: "post",
      data,
    });
  },
  getDetail(id: number) {
    return request({
      url: `${COINS_BASE_URL}/transactionRecords/detail/${id}`,
      method: "get",
    });
  },
};

export default recordsApi;
